package com.gec.anan;

import com.gec.anan.coupon.mapper.CouponInfoMapper;
import com.gec.anan.model.entity.coupon.CouponInfo;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class Demo {

    @Autowired
    private CouponInfoMapper couponInfoMapper;

    @Test
    public void test(){
        List<CouponInfo> couponInfos = couponInfoMapper.selectList(null);
        couponInfos.stream().forEach(item-> System.out.println(item));
    }
}
